package com.easygem.common.model.front;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author 廖思炜
 * @version 1.0
 * @className RechargeRecord
 * @Description TODO 充值记录
 * @date 2025/3/25 9:14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "`rechargeRecord`")
public class RechargeRecord {
    @Id
    @Column(name = "`rechargeId`")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long rechargeId;
    @Column(name = "`money`")
    @ApiModelProperty("充值金额")
    private Double money;
    @Column(name = "`account_Name`")
    @ApiModelProperty("账号名")
    private String accountName;
    @Column(name = "`create_time`")
    @ApiModelProperty("创建时间")
    @JsonFormat(timezone ="GMT+8",pattern ="yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    @TableField(exist = false)
    @JsonFormat(timezone ="GMT+8",pattern ="yyyy-MM-dd HH:mm:ss")
    private transient Timestamp startTime;//开始时间
    @TableField(exist = false)
    @JsonFormat(timezone ="GMT+8",pattern ="yyyy-MM-dd HH:mm:ss")
    private transient Timestamp stopTime;//结束时间
}
